<?xml version='1.0' encoding='UTF-8' ?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                xmlns:h="http://java.sun.com/jsf/html"
                >
    
    <label for="customerName"><h:outputText value="#{msg['name']}"/></label>
    <h:inputText  validator="#{customerValidator.validateName}" id="customerName" value="#{customerManager.name}"/>
    <h:message for="customerName" errorClass="invalid" />
    <label for="customerStreet"><h:outputText value="#{msg['customer.street']}"/></label>
    <h:inputText validator="#{customerValidator.validateAddress}" id="customerStreet" value="#{customerManager.address}"/>
    <h:message for="customerStreet" errorClass="invalid" />
    <label for="customerZip"><h:outputText value="#{msg['customer.zip']}"/></label>
    <h:inputText validator="#{customerValidator.validateZip}" id="customerZip" value="#{customerManager.zip}"/>
    <h:message for="customerZip" errorClass="invalid" />
    <label for="customerCity"><h:outputText value="#{msg['customer.city']}"/></label>
    <h:inputText validator="#{customerValidator.validateCity}" id="customerCity" value="#{customerManager.city}"/>
    <h:message for="customerCity" errorClass="invalid" />
    <label for="customerCountry"><h:outputText value="#{msg['customer.country']}"/></label>
    <h:inputText validator="#{customerValidator.validateCountry}" id="customerCountry" value="#{customerManager.country}"/>
    <h:message for="customerCountry" errorClass="invalid" />
    <label for="customerAccountNumber"><h:outputText value="#{msg['customer.accountNumber']}"/></label>
    <h:inputText validator="#{customerValidator.validateAccNumber}" id="customerAccountNumber" value="#{customerManager.accountNumber}"/>
    <h:message for="customerAccountNumber" errorClass="invalid" />
</ui:composition>

